package com.gutai.admin.common.entity.dto;

import com.gutai.admin.entity.Coupon;
import com.gutai.admin.entity.UserCoupon;

/**
 * 
 * 描述：
 * 
 * <pre>
 * HISTORY
 * ****************************************************************************
 *  ID    DATE            PERSON            REASON
 *  1     2018年11月14日         YC           Create
 * ****************************************************************************
 * </pre>
 * 
 * @author YC
 * @version 1.0
 */
public class UserCouponDto extends UserCoupon {

    private String couponName;
    private String userName;
    private Long usedTime = 0L;
    private Integer orderId = 0;

    public UserCouponDto(UserCoupon userCoupon, Coupon coupon) {
        this.id = userCoupon.getId();
        this.couponId = userCoupon.getCouponId();
        this.couponNumber = userCoupon.getCouponNumber();
        this.userId = userCoupon.getUserId();
        this.usedTime = userCoupon.getUsedTime();
        this.orderId = userCoupon.getOrderId();
        this.couponName = coupon.getName();
        this.userName = null;
    }

    public UserCouponDto() {}

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getUsedTime() {
        return usedTime;
    }

    public void setUsedTime(Long usedTime) {
        this.usedTime = usedTime;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }


}
